﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace SharePoint2007Migration.Costants
{
    public static class RegexCostants
    {
//        static readonly string REGEX_CATEGORY_MATCH = @"Category        : \w+";
        public static readonly string REGEX_CATEGORY_MATCH = @"Category        : \w+";
        public static readonly string REGEX_ERROR_MATCH = @"Error           : \w+";
        public static readonly string REGEX_UPGRADINGBLOCK_MATCH = @"UpgradeBlocking : \w+";
        public static readonly string REGEX_MESSAGE_MATCH = @"Message         : .+";
        public static readonly string REGEX_REMEDY_MATCH = @"Remedy          : .+";


        public static readonly string REGEX_GUID_MATCH = @"^(\{){0,1}[0-9a-fA-F]{8}\-[0-9a-fA-F]{4}\-[0-9a-fA-F]{4}\-[0-9a-fA-F]{4}\-[0-9a-fA-F]{12}(\}){0,1}$";

        //BaseIssue
        public static readonly string REGEX_BASEISSUE_CONTENT_DB = @"in the database \[.+\]";

        // Features Missing
        public static readonly string REGEX_FEATURE_CONTENT_DB= @"Database \[.+\] has reference";
        public static readonly string REGEX_FEATURE_FEATUREID = @"Id = \[.+\]";

        //WebPart Missing
        public static readonly string REGEX_WEBPART_WEBPARTID = @"WebPart class \[[0-9a-fA-F-]+\]";

        //Assembly Missing
        public static readonly string REGEX_ASSEMBLY_PUBLIC_KEY_TOKEN = @"Assembly \[[0-9a-zA-Z-.,=\s]+\]";

        //SetupFile Missing
        public static readonly string REGEX_SETUPFILE_FILENAME = @"File \[[0-9a-zA-Z-.,=\\\s]+\]";


        public static readonly string REPLACE_CATEGORY = @"Category        : ";
        public static readonly string REPLACE_ERROR = @"Error           : ";
        public static readonly string REPLACE_UPGRADINGBLOCK = @"UpgradeBlocking : ";
        public static readonly string REPLACE_MESSAGE = @"Message         : ";
        public static readonly string REPLACE_REMEDY = @"Remedy          : ";

    }
}
